package com.android.ddfafu.domian;

import android.content.Context;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public class ImageLab {
    private static ImageLab sImageLab;

    private List<Image> mImages;

    public static ImageLab get(Context context) {
        if (sImageLab == null) {
            sImageLab = new ImageLab(context);
        }

        return sImageLab;
    }

    private ImageLab(Context context) {
        mImages = new ArrayList<Image>();
        for (int i = 0; i < 10; i++) {
            Image image = new Image();
            //image.setTitle("Crime #" + i);
            //image.setSolved(i % 2 == 0);
            mImages.add(image);
        }
    }

    public List<Image> getmImages() {
        return mImages;
    }



    public Image getImage(UUID id) {
        //for (Image image : mImages) {
        //    if (image.getId().equals(id)) {
        //        return image;
        //    }
        //}

        return null;
    }
}